<template>
  <footer class="footer bg-gradient-to-r from-blue-900 to-gray-900 text-white py-16 relative overflow-hidden">
    <!-- 装饰元素 -->
    <div class="absolute top-0 left-0 w-full h-full opacity-5">
      <div class="absolute top-20 right-20 w-64 h-64 rounded-full bg-white"></div>
      <div class="absolute bottom-20 left-20 w-80 h-80 rounded-full bg-blue-300"></div>
    </div>
    
    <div class="container mx-auto px-4 relative z-10">
      <div class="grid grid-cols-1 md:grid-cols-3 gap-10">
        <div class="footer-info">
          <h3 class="text-2xl font-bold mb-4 tracking-tight">{{ $t('company.name') }}</h3>
          <p class="text-gray-300 mb-6 leading-relaxed max-w-md">
            专业从事工业胶水研发、生产和销售的高科技企业，为客户提供优质的粘胶解决方案。
          </p>
          <div class="flex space-x-4">
            <a href="#" class="w-10 h-10 rounded-full bg-blue-700/30 flex items-center justify-center transition-all hover:bg-blue-600 hover:scale-110">
              <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="currentColor" viewBox="0 0 24 24">
                <path d="M22.675 0h-21.35c-.732 0-1.325.593-1.325 1.325v21.351c0 .731.593 1.324 1.325 1.324h11.495v-9.294h-3.128v-3.622h3.128v-2.671c0-3.1 1.893-4.788 4.659-4.788 1.325 0 2.463.099 2.795.143v3.24l-1.918.001c-1.504 0-1.795.715-1.795 1.763v2.313h3.587l-.467 3.622h-3.12v9.293h6.116c.73 0 1.323-.593 1.323-1.325v-21.35c0-.732-.593-1.325-1.325-1.325z"/>
              </svg>
            </a>
            <a href="#" class="w-10 h-10 rounded-full bg-blue-700/30 flex items-center justify-center transition-all hover:bg-blue-600 hover:scale-110">
              <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="currentColor" viewBox="0 0 24 24">
                <path d="M22.46 6c-.77.35-1.6.58-2.46.69.88-.53 1.56-1.37 1.88-2.38-.83.5-1.75.85-2.72 1.05C18.37 4.5 17.26 4 16 4c-2.35 0-4.27 1.92-4.27 4.29 0 .34.04.67.11.98C8.28 9.09 5.11 7.38 3 4.79c-.37.63-.58 1.37-.58 2.15 0 1.49.75 2.81 1.91 3.56-.71 0-1.37-.2-1.95-.5v.03c0 2.08 1.48 3.82 3.44 4.21a4.22 4.22 0 0 1-1.93.07 4.28 4.28 0 0 0 4 2.98 8.521 8.521 0 0 1-5.33 1.84c-.34 0-.68-.02-1.02-.06C3.44 20.29 5.7 21 8.12 21 16 21 20.33 14.46 20.33 8.79c0-.19 0-.37-.01-.56.84-.6 1.56-1.36 2.14-2.23z"/>
              </svg>
            </a>
            <a href="#" class="w-10 h-10 rounded-full bg-blue-700/30 flex items-center justify-center transition-all hover:bg-blue-600 hover:scale-110">
              <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="currentColor" viewBox="0 0 24 24">
                <path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/>
              </svg>
            </a>
          </div>
        </div>
        
        <div class="footer-links">
          <h3 class="text-xl font-bold mb-6">快速链接</h3>
          <ul class="space-y-3">
            <li v-for="(item, key) in navItems" :key="key">
              <router-link 
                :to="item.path"
                class="text-gray-300 hover:text-white transition-all group flex items-center"
              >
                <span class="inline-block w-1.5 h-1.5 rounded-full bg-blue-500 mr-2 transform scale-0 group-hover:scale-100 transition-transform duration-200"></span>
                {{ item.label }}
              </router-link>
            </li>
          </ul>
        </div>
        
        <div class="footer-contact">
          <h3 class="text-xl font-bold mb-6">联系我们</h3>
          <ul class="space-y-4 text-gray-300">
            <li class="flex items-start">
              <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-3 mt-1 flex-shrink-0 text-blue-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
              </svg>
              <span>深圳市光明区公明街道上村社区长春北路202号805</span>
            </li>
            <li class="flex items-center">
              <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-3 flex-shrink-0 text-blue-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042 11.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z" />
              </svg>
              <span>19928872570</span>
            </li>
            <li class="flex items-center">
              <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 mr-3 flex-shrink-0 text-blue-400" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" />
              </svg>
              <span>593597059@qq.com</span>
            </li>
          </ul>
        </div>
      </div>
      
      <div class="border-t border-blue-800/50 mt-12 pt-8 text-center text-gray-400 rounded-t-xl bg-blue-900/20">
        <p class="mb-2">© {{ new Date().getFullYear() }} {{ $t('company.name') }}. 保留所有权利。</p>
        <p class="text-sm mb-2">专业工业胶水解决方案提供商</p>
        <p class="text-sm">粤ICP备2024340616号-2</p>
      </div>
    </div>
  </footer>
</template>

<script setup lang="ts">
import { computed } from 'vue'
import { useI18n } from 'vue-i18n'

const { t } = useI18n()

const navItems = [
  { path: '/', label: computed(() => t('nav.home')) },
  { path: '/about', label: computed(() => t('nav.about')) },
  { path: '/products', label: computed(() => t('nav.products')) },
  { path: '/cases', label: computed(() => t('nav.cases')) },
  { path: '/news', label: computed(() => t('nav.news')) },
  { path: '/contact', label: computed(() => t('nav.contact')) }
]
</script>

<style scoped>
.footer {
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.footer a:hover {
  text-decoration: none;
}

.footer svg {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer li:hover svg {
  transform: scale(1.15) rotate(5deg);
}

/* 社交媒体图标增强 */
.footer a[href="#"] {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.footer a[href="#"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.4s ease, height 0.4s ease;
}

.footer a[href="#"]:hover::before {
  width: 100%;
  height: 100%;
}

.footer a[href="#"]:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* 链接项增强 */
.footer-links a {
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  transform: translateX(4px);
  color: white !important;
}

.footer-links span {
  transition: all 0.3s ease;
}

.footer-links a:hover span {
  transform: scale(1.2);
  background: var(--primary-blue-light) !important;
}
</style>